Skip to content

fix(net): harden sync message resource controls - #6966

Open
xxo1shine wants to merge 3 commits into
tronprotocol:release_v4.8.3from
xxo1shine:fix/net-sync-message-validation
Open

xxo1shine wants to merge 3 commits into
tronprotocol:release_v4.8.3from
xxo1shine:fix/net-sync-message-validation

Conversation

@xxo1shine

Copy link
Copy Markdown
Collaborator

What does this PR do?
Peer-derived sync state could bypass height validation, request rate limiting, and block-fetch deduplication at boundary conditions.

Reject invalid remain counts and overflowed heights, apply sync-chain rate limiting to every request, and size the block ID cache to cover the full valid fetch window.

Fixes #6942

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

Peer-derived sync state could bypass height validation, request rate limiting, and block-fetch deduplication at boundary conditions.

Reject invalid remain counts and overflowed heights, apply sync-chain rate limiting to every request, and size the block ID cache to cover the full valid fetch window.
@github-actions
github-actions Bot requested a review from 317787106 September 11, 2026 07:27
@halibobo1205 halibobo1205 added the topic:net p2p net work, synchronization label Sep 14, 2026
@halibobo1205 halibobo1205 added this to the GreatVoyage-v4.8.3 milestone Sep 14, 2026
@xxo1shine
xxo1shine changed the base branch from develop to release_v4.8.3 September 14, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic:net p2p net work, synchronization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden sync message validation and resource controls

2 participants